<!--
+----------------------------------------------------------------------
| 友得云客  - 开启房产营销新纪元
+----------------------------------------------------------------------
| Copyright (c) 2019~2023 优得（西安）信息科技有限公司版权所有
+----------------------------------------------------------------------
| Licensed 友得云客不是自由软件 未经允许不可移除相关版权
+----------------------------------------------------------------------
| Author: www.youdeyunke.com
+----------------------------------------------------------------------
-->
<template>
    <div class="post" v-cloak>
        <div class="cover">
            <img :src="post.cover + '?imageView2/2/w/400'" />
            <div class="address">{{ post.street }}</div>
        </div>
        <div class="footer">
            <div class="title">{{ post.title }}</div>
            <div class="top">
                <div class="tags">
                    <div class="tag-item">
                        {{ post.status }}
                    </div>
                </div>
                <div class="price">
                    <b>起拍价
                        {{ post.start_price }}
                        元</b>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data () {
        return {
            loading: false,
        };
    },
    props: {
        post: { type: Object, default: null },
    },

    mounted: function () { },

    computed: {
        tags: function () {
            return this.post.tags_list.slice(0, 3);
        },
    },

    methods: {},
};
</script>

<style scoped>
.post {
    font-size: 24px;
    height: 524px;
    margin-bottom: 50px;
}

.post .cover {
    height: 400px;
    position: relative;
}

.post .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.post .cover img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px;
}

.post .tags {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 20px;
    margin-bottom: 10px;
}

.post .tag-item:last-child {
    margin-right: 0px;
}

.post .tag-item {
    border: 2px solid #999;
    color: #999;
    padding: 6px 10px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post .cover .address {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    height: 60px;
    box-sizing: border-box;
    padding: 0 20px;
    color: #fff;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.post .top b {
    color: red;
}

.post .title {
    color: #000;
    font-size: 32px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    margin-top: 20px;
}
</style>